package com.yzh.booksystem.service;

import com.yzh.booksystem.dao.DeleteBookDao;
import com.yzh.booksystem.entity.Book;

import java.sql.SQLException;

public class DeleteBookService {
    DeleteBookDao deleteBookDao = new DeleteBookDao();
    public boolean isdeleteBook(Book book) throws SQLException {
        if (deleteBookDao.deleteBook(book)) {
            return true;
        } else {
            return false;
        }
    }
}
